package com.aopeng.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 谢辉
 * @description 友情链接类
 * @data 2020/7/15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "aopeng_friend_link")
public class AopengFriendLink {

    @TableId(value = "id",type = IdType.AUTO)   //指定id并设置为自增
    private Long id;
    private String linkAddress;                 //链接地址
    private String linkName;                    //链接名称
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;                    //创建时间
    private Long creator;                       //创建人
    //字段填充内容
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;                    //修改时间
    private Long updater;                       //修改人
    private Integer isDelete;                   //是否删除  1.未删除  2.已删除


    public AopengFriendLink(Long id, String linkAddress, String linkName) {
        this.id = id;
        this.linkAddress = linkAddress;
        this.linkName = linkName;
    }
}
